package com.example.demo.service.impl;

import com.example.demo.entity.Shop;
import com.example.demo.entity.Shop1;
import com.example.demo.mapper.ShopMapper;
import com.example.demo.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopServiceImpl implements ShopService {
    @Autowired
    ShopMapper shopMapper;

    @Override
    public void insertShop(Shop shop) {
        shopMapper.insertShop(shop);
    }

    @Override
    public List<Shop1> selectShop1(String id) {
        return shopMapper.selectShop1(id);
    }

    @Override
    public void deleteShop1(String id) {
        shopMapper.deleteShop1(id);
    }

    @Override
    public Shop selectShop(String id) {
        return shopMapper.selectShop(id);
    }
}
